import axios from '../../axios.js'

const lessors ={
    getLessors(data){
        return axios({
            url:'/lessors/getLessors',
            method:"post",
            data
        })
    },
    frozenLessors(data){
        return axios({
            url:'/lessors/frozenLessors',
            method:'post',
            data
        })
    },
    // 出租方登录
    loginLessors(data) {
        return axios({
            url: "/lessors/loginLessors",
            method: "post",
            data
        })
    },
    // 出租方注册
    registerLessors(data) {
        return axios({
            url: "/lessors/registerLessors",
            method: "post",
            data
        });
    },
    // 验证账号
    isaccount(data) {
        return axios({
            url: "/lessors/isLessors",
            method: "post",
            data
        });
    },
    // 获取到对应用户的ID
    getTokenID(data) {
        return axios({
            url: "/lessors/getToken",
            method: "post",
            data
        })
    }
}
export default lessors